'''
with 简化步骤
'''
with open('resources/test.txt', mode='r', encoding='utf-8') as f:
    context = f.read()
    print(context)
print('hello')  # 自动关闭文件